package br.edu.ifal.crazypizza.gui;

import java.text.ParseException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author FELIPE
 */
public class FrmPedidoPizza extends javax.swing.JFrame {

    /**
     * Creates new form FrmPedidoPizza
     */
    public FrmPedidoPizza() {
       this.setExtendedState(MAXIMIZED_BOTH);
       initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup2 = new javax.swing.ButtonGroup();
        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup3 = new javax.swing.ButtonGroup();
        pnlTamanho = new javax.swing.JPanel();
        btnPequeno = new javax.swing.JRadioButton();
        btnMedio = new javax.swing.JRadioButton();
        btnGrande = new javax.swing.JRadioButton();
        txtValorTamanhoPequeno = new javax.swing.JTextField();
        txtValorTamanhoMedio = new javax.swing.JTextField();
        txtValorTamanhoGrande = new javax.swing.JTextField();
        btnBrotinho = new javax.swing.JRadioButton();
        txtValorBrotinho = new javax.swing.JTextField();
        pnlOutros = new javax.swing.JPanel();
        btnEntrega = new javax.swing.JCheckBox();
        btnBorda = new javax.swing.JCheckBox();
        txtValorEntrega = new javax.swing.JTextField();
        txtValorBorda = new javax.swing.JTextField();
        btnCompleta = new javax.swing.JRadioButton();
        btnMetadeOutro = new javax.swing.JRadioButton();
        pnlIngredientes = new javax.swing.JPanel();
        cslQueijo = new javax.swing.JCheckBox();
        cslAzeitona = new javax.swing.JCheckBox();
        cslCebola = new javax.swing.JCheckBox();
        cslTomate = new javax.swing.JCheckBox();
        cslPresunto = new javax.swing.JCheckBox();
        cslCalabresa = new javax.swing.JCheckBox();
        txtValorAzeitona = new javax.swing.JTextField();
        txtValorQueijo = new javax.swing.JTextField();
        txtValorTomate = new javax.swing.JTextField();
        txtValorCebola = new javax.swing.JTextField();
        txtValorCalabresa = new javax.swing.JTextField();
        txtValorPresunto = new javax.swing.JTextField();
        cslOregano = new javax.swing.JCheckBox();
        txtValorCatupiry = new javax.swing.JTextField();
        cslCatupiri = new javax.swing.JCheckBox();
        txtValorCamarao = new javax.swing.JTextField();
        cslCamarao = new javax.swing.JCheckBox();
        txtValorOregano = new javax.swing.JTextField();
        cslOvo = new javax.swing.JCheckBox();
        txtValorOvo = new javax.swing.JTextField();
        cslBorda = new javax.swing.JCheckBox();
        btnCriarPizza = new javax.swing.JButton();
        lblPizzaPersonalizada = new javax.swing.JLabel();
        btnCancelar = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        txtObservacao = new javax.swing.JTextArea();
        lblObeservacao = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("PEDIDO PIZZA PERSONALIZADA");
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        pnlTamanho.setBackground(new java.awt.Color(255, 255, 204));
        pnlTamanho.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "TAMANHO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Comic Sans MS", 1, 14), new java.awt.Color(204, 0, 0))); // NOI18N

        buttonGroup2.add(btnPequeno);
        btnPequeno.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnPequeno.setText("Pequeno");

        buttonGroup2.add(btnMedio);
        btnMedio.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnMedio.setText("Médio");

        buttonGroup2.add(btnGrande);
        btnGrande.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnGrande.setText("Grande");
        btnGrande.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGrandeActionPerformed(evt);
            }
        });

        txtValorTamanhoPequeno.setEditable(false);
        txtValorTamanhoPequeno.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorTamanhoPequeno.setText("R$ 14,00");

        txtValorTamanhoMedio.setEditable(false);
        txtValorTamanhoMedio.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorTamanhoMedio.setText("R$ 16,00");
        txtValorTamanhoMedio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtValorTamanhoMedioActionPerformed(evt);
            }
        });

        txtValorTamanhoGrande.setEditable(false);
        txtValorTamanhoGrande.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorTamanhoGrande.setText("R$ 18,00");
        txtValorTamanhoGrande.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtValorTamanhoGrandeActionPerformed(evt);
            }
        });

        buttonGroup2.add(btnBrotinho);
        btnBrotinho.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnBrotinho.setText("Brotinho");

        txtValorBrotinho.setEditable(false);
        txtValorBrotinho.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorBrotinho.setText("R$ 10,00");

        javax.swing.GroupLayout pnlTamanhoLayout = new javax.swing.GroupLayout(pnlTamanho);
        pnlTamanho.setLayout(pnlTamanhoLayout);
        pnlTamanhoLayout.setHorizontalGroup(
            pnlTamanhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTamanhoLayout.createSequentialGroup()
                .addGroup(pnlTamanhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(pnlTamanhoLayout.createSequentialGroup()
                        .addComponent(btnBrotinho)
                        .addGap(18, 18, 18)
                        .addComponent(txtValorBrotinho))
                    .addGroup(pnlTamanhoLayout.createSequentialGroup()
                        .addGroup(pnlTamanhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnMedio)
                            .addComponent(btnGrande)
                            .addComponent(btnPequeno))
                        .addGap(18, 18, 18)
                        .addGroup(pnlTamanhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtValorTamanhoGrande, javax.swing.GroupLayout.DEFAULT_SIZE, 75, Short.MAX_VALUE)
                            .addComponent(txtValorTamanhoMedio)
                            .addComponent(txtValorTamanhoPequeno))))
                .addContainerGap(26, Short.MAX_VALUE))
        );
        pnlTamanhoLayout.setVerticalGroup(
            pnlTamanhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlTamanhoLayout.createSequentialGroup()
                .addGroup(pnlTamanhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnBrotinho)
                    .addComponent(txtValorBrotinho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlTamanhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtValorTamanhoPequeno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnPequeno))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlTamanhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnMedio)
                    .addComponent(txtValorTamanhoMedio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlTamanhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnGrande)
                    .addComponent(txtValorTamanhoGrande, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(47, Short.MAX_VALUE))
        );

        getContentPane().add(pnlTamanho, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 220, 210, 190));

        pnlOutros.setBackground(new java.awt.Color(255, 255, 204));
        pnlOutros.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "OUTROS", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Comic Sans MS", 1, 14), new java.awt.Color(204, 51, 0))); // NOI18N

        btnEntrega.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnEntrega.setText("Entrega");

        btnBorda.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnBorda.setText("Borda");

        txtValorEntrega.setEditable(false);
        txtValorEntrega.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorEntrega.setText("R$ 2,00");

        txtValorBorda.setEditable(false);
        txtValorBorda.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorBorda.setText("R$ 2,00");

        buttonGroup3.add(btnCompleta);
        btnCompleta.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnCompleta.setText("Completa");

        buttonGroup3.add(btnMetadeOutro);
        btnMetadeOutro.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnMetadeOutro.setText("Metade um, metade outro");

        javax.swing.GroupLayout pnlOutrosLayout = new javax.swing.GroupLayout(pnlOutros);
        pnlOutros.setLayout(pnlOutrosLayout);
        pnlOutrosLayout.setHorizontalGroup(
            pnlOutrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlOutrosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlOutrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlOutrosLayout.createSequentialGroup()
                        .addComponent(btnCompleta)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(pnlOutrosLayout.createSequentialGroup()
                        .addGroup(pnlOutrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(btnMetadeOutro)
                            .addGroup(pnlOutrosLayout.createSequentialGroup()
                                .addGroup(pnlOutrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(btnEntrega)
                                    .addComponent(btnBorda))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(pnlOutrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(txtValorEntrega, javax.swing.GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE)
                                    .addComponent(txtValorBorda))))
                        .addContainerGap(27, Short.MAX_VALUE))))
        );
        pnlOutrosLayout.setVerticalGroup(
            pnlOutrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlOutrosLayout.createSequentialGroup()
                .addGroup(pnlOutrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnEntrega)
                    .addComponent(txtValorEntrega, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlOutrosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnBorda)
                    .addComponent(txtValorBorda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnCompleta)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnMetadeOutro)
                .addGap(0, 55, Short.MAX_VALUE))
        );

        getContentPane().add(pnlOutros, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 220, 230, 190));

        pnlIngredientes.setBackground(new java.awt.Color(255, 255, 204));
        pnlIngredientes.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGREDIENTES", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Comic Sans MS", 1, 14), new java.awt.Color(204, 0, 0))); // NOI18N

        cslQueijo.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cslQueijo.setText("Queijo Ralado");

        cslAzeitona.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cslAzeitona.setText("Azeitona");

        cslCebola.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cslCebola.setText("Cebola");

        cslTomate.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cslTomate.setText("Tomate");

        cslPresunto.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cslPresunto.setText("Presunto");

        cslCalabresa.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cslCalabresa.setText("Calabresa");

        txtValorAzeitona.setEditable(false);
        txtValorAzeitona.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorAzeitona.setText("R$ 0,50");

        txtValorQueijo.setEditable(false);
        txtValorQueijo.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorQueijo.setText("R$ 0,50");

        txtValorTomate.setEditable(false);
        txtValorTomate.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorTomate.setText("R$ 1,00");

        txtValorCebola.setEditable(false);
        txtValorCebola.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorCebola.setText("R$ 0,50");

        txtValorCalabresa.setEditable(false);
        txtValorCalabresa.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorCalabresa.setText("R$ 0,80");

        txtValorPresunto.setEditable(false);
        txtValorPresunto.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorPresunto.setText("R$ 0,90");

        cslOregano.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cslOregano.setText("Óregano");

        txtValorCatupiry.setEditable(false);
        txtValorCatupiry.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorCatupiry.setText("R$ 1,00");
        txtValorCatupiry.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtValorCatupiryActionPerformed(evt);
            }
        });

        cslCatupiri.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cslCatupiri.setText("Catupiri");

        txtValorCamarao.setEditable(false);
        txtValorCamarao.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorCamarao.setText("R$ 1,50");

        cslCamarao.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cslCamarao.setText("Camarão");

        txtValorOregano.setEditable(false);
        txtValorOregano.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorOregano.setText("R$ 0,30");

        cslOvo.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cslOvo.setText("Ovo");

        txtValorOvo.setEditable(false);
        txtValorOvo.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtValorOvo.setText("R$ 0,50");

        cslBorda.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cslBorda.setText("Borda");

        javax.swing.GroupLayout pnlIngredientesLayout = new javax.swing.GroupLayout(pnlIngredientes);
        pnlIngredientes.setLayout(pnlIngredientesLayout);
        pnlIngredientesLayout.setHorizontalGroup(
            pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngredientesLayout.createSequentialGroup()
                .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cslQueijo)
                    .addComponent(cslAzeitona)
                    .addComponent(cslTomate)
                    .addComponent(cslCebola)
                    .addComponent(cslCalabresa)
                    .addComponent(cslPresunto))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtValorPresunto, javax.swing.GroupLayout.DEFAULT_SIZE, 80, Short.MAX_VALUE)
                    .addComponent(txtValorCalabresa, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(txtValorTomate)
                    .addComponent(txtValorCebola)
                    .addComponent(cslOvo)
                    .addComponent(txtValorQueijo)
                    .addComponent(txtValorAzeitona))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, 37, Short.MAX_VALUE)
                .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlIngredientesLayout.createSequentialGroup()
                        .addComponent(cslBorda)
                        .addGap(28, 28, 28)
                        .addComponent(txtValorOvo, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlIngredientesLayout.createSequentialGroup()
                        .addComponent(cslCamarao)
                        .addGap(8, 8, 8)
                        .addComponent(txtValorCamarao, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlIngredientesLayout.createSequentialGroup()
                        .addComponent(cslOregano)
                        .addGap(10, 10, 10)
                        .addComponent(txtValorOregano, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlIngredientesLayout.createSequentialGroup()
                        .addComponent(cslCatupiri)
                        .addGap(18, 18, 18)
                        .addComponent(txtValorCatupiry, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        pnlIngredientesLayout.setVerticalGroup(
            pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngredientesLayout.createSequentialGroup()
                .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlIngredientesLayout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cslQueijo)
                            .addComponent(txtValorQueijo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlIngredientesLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtValorCatupiry, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cslCatupiri))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(cslAzeitona)
                    .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(txtValorAzeitona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cslOregano)
                        .addComponent(txtValorOregano, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cslTomate)
                    .addComponent(txtValorTomate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cslCamarao)
                    .addComponent(txtValorCamarao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cslOvo)
                        .addComponent(txtValorOvo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(cslBorda)
                    .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cslCebola)
                        .addComponent(txtValorCebola, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cslCalabresa)
                    .addComponent(txtValorCalabresa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlIngredientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cslPresunto)
                    .addComponent(txtValorPresunto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(13, Short.MAX_VALUE))
        );

        getContentPane().add(pnlIngredientes, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 150, 410, -1));

        btnCriarPizza.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/edu/ifal/crazypizza/imagens/pizzaicon.png"))); // NOI18N
        btnCriarPizza.setText("CRIAR PIZZA");
        btnCriarPizza.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCriarPizzaActionPerformed(evt);
            }
        });
        getContentPane().add(btnCriarPizza, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 623, -1, 60));

        lblPizzaPersonalizada.setFont(new java.awt.Font("Comic Sans MS", 1, 36)); // NOI18N
        lblPizzaPersonalizada.setForeground(new java.awt.Color(255, 0, 0));
        lblPizzaPersonalizada.setText("PIZZA PERSONALIZADA");
        getContentPane().add(lblPizzaPersonalizada, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 100, 470, 80));

        btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/edu/ifal/crazypizza/imagens/Botoes_5123_cancel_48.png"))); // NOI18N
        btnCancelar.setText("CANCELAR");
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });
        getContentPane().add(btnCancelar, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 620, -1, 60));

        txtObservacao.setColumns(20);
        txtObservacao.setLineWrap(true);
        txtObservacao.setRows(5);
        jScrollPane1.setViewportView(txtObservacao);

        getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 490, 596, 100));

        lblObeservacao.setFont(new java.awt.Font("Comic Sans MS", 1, 14)); // NOI18N
        lblObeservacao.setText("Observações:");
        getContentPane().add(lblObeservacao, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 450, -1, 30));

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/edu/ifal/crazypizza/imagens/Tela Login.jpg"))); // NOI18N
        jLabel2.setText("jLabel2");
        getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnGrandeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGrandeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnGrandeActionPerformed

    private void txtValorTamanhoGrandeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtValorTamanhoGrandeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtValorTamanhoGrandeActionPerformed

    private void txtValorTamanhoMedioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtValorTamanhoMedioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtValorTamanhoMedioActionPerformed

    private void txtValorCatupiryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtValorCatupiryActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtValorCatupiryActionPerformed

    private void btnCriarPizzaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCriarPizzaActionPerformed
     JOptionPane.showMessageDialog(null, "Seu pedido foi criado!");
            this.dispose();
      // TODO add your handling code here:
    }//GEN-LAST:event_btnCriarPizzaActionPerformed

    private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed
        this.dispose();
        // TODO add your handling code here:
    }//GEN-LAST:event_btnCancelarActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrmPedidoPizza.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrmPedidoPizza.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrmPedidoPizza.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrmPedidoPizza.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FrmPedidoPizza().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JCheckBox btnBorda;
    private javax.swing.JRadioButton btnBrotinho;
    private javax.swing.JButton btnCancelar;
    private javax.swing.JRadioButton btnCompleta;
    private javax.swing.JButton btnCriarPizza;
    private javax.swing.JCheckBox btnEntrega;
    private javax.swing.JRadioButton btnGrande;
    private javax.swing.JRadioButton btnMedio;
    private javax.swing.JRadioButton btnMetadeOutro;
    private javax.swing.JRadioButton btnPequeno;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.ButtonGroup buttonGroup3;
    private javax.swing.JCheckBox cslAzeitona;
    private javax.swing.JCheckBox cslBorda;
    private javax.swing.JCheckBox cslCalabresa;
    private javax.swing.JCheckBox cslCamarao;
    private javax.swing.JCheckBox cslCatupiri;
    private javax.swing.JCheckBox cslCebola;
    private javax.swing.JCheckBox cslOregano;
    private javax.swing.JCheckBox cslOvo;
    private javax.swing.JCheckBox cslPresunto;
    private javax.swing.JCheckBox cslQueijo;
    private javax.swing.JCheckBox cslTomate;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblObeservacao;
    private javax.swing.JLabel lblPizzaPersonalizada;
    private javax.swing.JPanel pnlIngredientes;
    private javax.swing.JPanel pnlOutros;
    private javax.swing.JPanel pnlTamanho;
    private javax.swing.JTextArea txtObservacao;
    private javax.swing.JTextField txtValorAzeitona;
    private javax.swing.JTextField txtValorBorda;
    private javax.swing.JTextField txtValorBrotinho;
    private javax.swing.JTextField txtValorCalabresa;
    private javax.swing.JTextField txtValorCamarao;
    private javax.swing.JTextField txtValorCatupiry;
    private javax.swing.JTextField txtValorCebola;
    private javax.swing.JTextField txtValorEntrega;
    private javax.swing.JTextField txtValorOregano;
    private javax.swing.JTextField txtValorOvo;
    private javax.swing.JTextField txtValorPresunto;
    private javax.swing.JTextField txtValorQueijo;
    private javax.swing.JTextField txtValorTamanhoGrande;
    private javax.swing.JTextField txtValorTamanhoMedio;
    private javax.swing.JTextField txtValorTamanhoPequeno;
    private javax.swing.JTextField txtValorTomate;
    // End of variables declaration//GEN-END:variables
}
